// API -------------------------------------------------------------
export const API_COPY_PAGE: Api = {
  title: "图书副本--分页查询",
  path: "copy/list",
  method: "POST",
  remark: "图书副本接口",
};
// re
export interface ReqCopyPage extends ReqPage {
  title?: string;
  author?:string;
}
// API -------------------------------------------------------------
export const API_COPY_ADD: Api = {
  title: "图书副本--新增",
  path: "copy/add",
  method: "POST",
  remark: "图书副本接口",
};
// req
export interface ReqCopyAddPage{
  copyId?:number
  title?: string;
  author?:string;
  publisher?:string;
  isbn?:string;
}
// // API -------------------------------------------------------------
export const API_COPY_EDIT: Api = {
  title: "图书副本--编辑",
  path: "copy/edit",
  method: "POST",
  remark: "图书副本接口",
};
// // API -------------------------------------------------------------
export const API_COPY_DELETE: Api = {
  title: "图书副本--删除",
  path: "copy/delete",
  method: "POST",
  remark: "图书副本接口",
};

// API -------------------------------------------------------------
export const API_BOOK_PAGE: Api = {
  title: "图书--分页查询",
  path: "book/list",
  method: "POST",
  remark: "图书接口",
};
export const API_USER_BOOK_PAGE: Api = {
  title: "图书--用户分页查询",
  path: "query/list",
  method: "POST",
  remark: "图书接口",
};
export const API_BOOK_TITLE_ISBN_PAGE: Api = {
  title: "图书--书名或isbn查询",
  path: "book/bilist",
  method: "POST",
  remark: "图书接口",
};
// re
export interface ReqBookPage extends ReqPage {
  title?: string;
  author?:string;
  isbn?:string;
}
// API -------------------------------------------------------------
export const API_BOOK_ADD: Api = {
  title: "图书--新增",
  path: "book/add",
  method: "POST",
  remark: "图书接口",
};
// req
export interface ReqBookAddPage{
  bookId?:number
  title?: string;
  author?:string;
  publisher?:string;
  isbn?:string;
}
// // API -------------------------------------------------------------
export const API_BOOK_EDIT: Api = {
  title: "图书--编辑",
  path: "book/edit",
  method: "POST",
  remark: "图书接口",
};
// // API -------------------------------------------------------------
export const API_BOOK_DELETE: Api = {
  title: "图书--删除",
  path: "book/delete",
  method: "POST",
  remark: "图书接口",
};

// API -------------------------------------------------------------
export const API_SHELF_PAGE: Api = {
  title: "书架--分页查询",
  path: "shelf/list",
  method: "POST",
  remark: "书架接口",
};
export const API_SHELF_NO_PAGE: Api = {
  title: "书架--分页查询",
  path: "shelf/all",
  method: "POST",
  remark: "书架接口",
};
// re
export interface ReqShelfPage extends ReqPage {
  shelfName?: string;
  roomName?:string;
}
// API -------------------------------------------------------------
export const API_SHELF_ADD: Api = {
  title: "书架--新增",
  path: "shelf/add",
  method: "POST",
  remark: "书架接口",
};
// req
export interface ReqShelfAddPage {
  shelfId?:number
  shelfName?: string;
  maxLevel?:string;
  roomId?:string;
}
// // API -------------------------------------------------------------
export const API_SHELF_EDIT: Api = {
  title: "书架--编辑",
  path: "shelf/edit",
  method: "POST",
  remark: "书架接口",
};
// // API -------------------------------------------------------------
export const API_SHELF_DELETE: Api = {
  title: "书架--删除",
  path: "shelf/delete",
  method: "POST",
  remark: "书架接口",
};
// API -------------------------------------------------------------
export const API_ROOM_PAGE: Api = {
  title: "房间--分页查询",
  path: "room/list",
  method: "POST",
  remark: "房间接口",
};
export const API_ROOM_ALL: Api = {
  title: "房间--分页查询",
  path: "room/all",
  method: "POST",
  remark: "房间接口",
};

// re
export interface ReqRoomPage extends ReqPage {
  roomName?: string;
  roomLocation?:string;
}

// API -------------------------------------------------------------
export const API_ROOM_ADD: Api = {
  title: "房间--新增",
  path: "room/add",
  method: "POST",
  remark: "房间接口",
};

// req
export interface ReqRoomAddPage {
  roomId?:number
  roomName?: string;
  roomLocation?:string;
}
// // API -------------------------------------------------------------
export const API_ROOM_EDIT: Api = {
  title: "房间--编辑",
  path: "room/edit",
  method: "POST",
  remark: "房间接口",
};
// // API -------------------------------------------------------------
export const API_ROOM_DELETE: Api = {
  title: "房间--删除",
  path: "room/delete",
  method: "POST",
  remark: "房间接口",
};

// API -------------------------------------------------------------
export const API_SOURCE_PAGE: Api = {
  title: "图书来源--分页查询",
  path: "source/list",
  method: "POST",
  remark: "图书来源接口",
};
export const API_SOURCE_NO_PAGE: Api = {
  title: "图书来源--不分页查询",
  path: "source/all",
  method: "POST",
  remark: "图书来源接口",
};
// re
export interface ReqSourcePage extends ReqPage {
  phone?: string;
  name?:string;
  contact?:string;
}

// API -------------------------------------------------------------
export const API_SOURCE_ADD: Api = {
  title: "图书来源--新增",
  path: "source/add",
  method: "POST",
  remark: "图书属性接口",
};
// req
export interface ReqSourceAddPage {
  sourceId?:number
  sourcePhone?: string;
  sourceName?:string;
  sourceContact?:string;
}
// // API -------------------------------------------------------------
export const API_SOURCE_EDIT: Api = {
  title: "图书来源--编辑",
  path: "source/edit",
  method: "POST",
  remark: "图书属性接口",
};
// // API -------------------------------------------------------------
export const API_SOURCE_DELETE: Api = {
  title: "图书来源--删除",
  path: "source/delete",
  method: "POST",
  remark: "图书来源接口",
};

// // API -------------------------------------------------------------

export const API_CATEGORY_PAGE: Api = {
  title: "图书分类--分页查询",
  path: "category/list",
  method: "POST",
  remark: "图书分类接口",
};

// req
export interface ReqCategoryPage extends ReqPage {
  categoryName?: string;
}

// // API -------------------------------------------------------------

export const API_CATEGORY_ADD: Api = {
  title: "图书分类--新增",
  path: "category/add",
  method: "POST",
  remark: "图书分类接口",
};
// req
export interface ReqCategoryAdd {
  categoryId?: number;
  categoryName?: string;
  parentCategory?: string;
}

// // API -------------------------------------------------------------

export const API_CATEGORY_LONG_PAGE: Api = {
  title: "图书分类--不分页列表",
  path: "category/all",
  method: "POST",
  remark: "图书分类接口",
};

// // API -------------------------------------------------------------

export const API_CATEGORY_EDIT: Api = {
  title: "图书分类--编辑",
  path: "category/edit",
  method: "POST",
  remark: "图书分类接口",
};

// // API -------------------------------------------------------------

export const API_CATEGORY_DELETE: Api = {
  title: "图书分类--删除",
  path: "category/delete",
  method: "POST",
  remark: "图书分类接口",
};

// // API -------------------------------------------------------------

export const API_PRO_ATTR_GROUP_PAGE: Api = {
  title: "图书属性组--分页查询",
  path: "pro_attr_group/page",
  method: "POST",
  remark: "图书属性组接口",
};

// req
export interface ReqProAttrGroupPage extends ReqPage {
  title?: string;
}

// // API -------------------------------------------------------------

export const API_PRO_ATTR_GROUP_ADD: Api = {
  title: "图书属性组--新增",
  path: "pro_attr_group/add",
  method: "POST",
  remark: "图书属性组接口",
};

// req
export interface ReqProAttrGroupAddPage {
  categoryId?: string;
  description?: string;
  name?: string;
  sort?: number;
  dataScope?: Array<string>;
}

// // API -------------------------------------------------------------

export const API_PRO_ATTR_GROUP_EDIT: Api = {
  title: "图书属性组--编辑",
  path: "pro_attr_group/edit",
  method: "POST",
  remark: "图书属性组接口",
};

// // API -------------------------------------------------------------

export const API_PRO_ATTR_GROUP_DELETE: Api = {
  title: "图书属性组--删除",
  path: "pro_attr_group/delete",
  method: "POST",
  remark: "图书属性组接口",
};

// // API -------------------------------------------------------------

export const API_PRO_CATEGORY_LONGTREE_PAGE: Api = {
  title: "图书分类--不分页树形列表",
  path: "pro_category/list_tree",
  method: "POST",
  remark: "图书分类接口",
};

// // API -------------------------------------------------------------

export const API_PRO_ATTR_LONG_PAGE: Api = {
  title: "根据属性分组查询是否关联--不分页列表",
  path: "pro_attr/list_by_attr_group",
  method: "POST",
  remark: "图书属性接口",
};

// // API -------------------------------------------------------------

export const API_PRO_ATTR_GROUP_RELATION_EDIT: Api = {
  title: "图书分组关联--编辑",
  path: "pro_attr_group_relation/edit",
  method: "POST",
  remark: "图书分组关联接口",
};

// // API -------------------------------------------------------------

export const API_PRO_SHOP_PRODUCT_PAGE: Api = {
  title: "店铺图书--分页查询",
  path: "pro_shop_product/page",
  method: "POST",
  remark: "店铺图书接口",
};
// req
export interface ReqProShopProductPage extends ReqPage {
  shopId?: string;
  spuName?: string;
  spuCode?: string;
  categoryId?: string;
}

// // API -------------------------------------------------------------

export const API_PRO_SHOP_PRODUCT_EDIT: Api = {
  title: "设置店铺图书库存",
  path: "pro_shop_product/add",
  method: "POST",
  remark: "店铺图书接口",
};

// req
export interface ReqProShopProductEdit {
  id?: string;
  stock?: number;
}

// // API -------------------------------------------------------------

export const API_PRO_PRODUCT_SPU_ADD: Api = {
  title: "平台图书信息--新增",
  path: "pro_product_spu/add",
  method: "POST",
  remark: "图书信息（SPU）接口",
};
// req
export interface ReqProProductSpuAdd {
  code?: string;
  categoryId?: string;
  description?: string;
  isCoupon?: number;
  isVip?: number;
  name?: string;
  pic?: string;
  subTitle?: string;
  saleAttrValue?: Array<object>;
  id?: string;
  dataScope?: Array<string>;
}

// // API -------------------------------------------------------------

export const API_PRO_ATTR_GROUP_LONG_PAGE: Api = {
  title: "图书属性分组--不分页列表",
  path: "pro_attr_group/list",
  method: "POST",
  remark: "图书属性分组接口",
};

// // API -------------------------------------------------------------

export const API_PRO_PRODUCT_SPU_PAGE: Api = {
  title: "平台图书信息--分页查询",
  path: "pro_product_spu/page",
  method: "POST",
  remark: "图书信息（SPU）接口",
};

// req
export interface ReqProProductSpuPage extends ReqPage {
  name?: string;
  code?: string;
  categoryId?: string;
}

// // API -------------------------------------------------------------

export const API_PRO_PRODUCT_SPU_DETAIL: Api = {
  title: "平台图书信息--详情",
  path: "pro_product_spu/detail",
  method: "POST",
  remark: "图书信息（SPU）接口",
};

// // API -------------------------------------------------------------

export const API_PRO_PRODUCT_SPU_DELETE: Api = {
  title: "平台图书信息--删除",
  path: "pro_product_spu/delete",
  method: "POST",
  remark: "图书信息（SPU）接口",
};

// // API -------------------------------------------------------------

export const API_PRO_PRODUCT_SPU_EDIT: Api = {
  title: "平台图书信息--编辑",
  path: "pro_product_spu/edit",
  method: "POST",
  remark: "图书信息（SPU）接口",
};

// // API -------------------------------------------------------------

export const API_PRO_PRODUCT_SPU_STATUS_EDIT: Api = {
  title: "平台图书信息--修改状态",
  path: "pro_product_spu/changeStatus",
  method: "POST",
  remark: "图书信息（SPU）接口",
};
